<?php

use Phinx\Migration\AbstractMigration;

class AddColumnPlanStartTimePlanEndTimeInEntityTable extends AbstractMigration
{
    public function up()
    {
        $this->table("entity")
            ->addColumn('plan_start_time', 'integer', ['signed' => false, 'default' => 0, 'limit' => 11, 'comment' => '计划制作开始时间'])
            ->addColumn('plan_end_time', 'integer', ['signed' => false, 'default' => 0, 'limit' => 11, 'comment' => '计划制作截至时间'])
            ->save();
    }

    public function down()
    {
        $this->table("entity")
            ->removeColumn("plan_start_time")
            ->removeColumn("plan_end_time")->save();

    }
}
